<%@ include file="/WEB-INF/page/includes.jsp" %>

<div id="header">
    <h2><html:link action="/home">Belote Multijoueur Gratuite</html:link></h2>
    
    <c:choose>
	    <c:when test="${not empty sessionScope['connectedUser']}">
	        <span>Bonjour ${sessionScope['connectedUser'].login}</span>
            <ul id="menu">
                <li><html:link action="/user/logout">Se déconnecter</html:link></li>
            </ul>
	    </c:when>
	    <c:otherwise>
		    <ul id="menu">
		        <li><html:link action="/user/login">Se connecter</html:link></li>
		        <li><html:link action="/user/registration">S'inscrire</html:link></li>
		    </ul>
	    </c:otherwise>
    </c:choose>
</div>